Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Prevent segfault when butcher target disappears #73990

Merged

Conversation

inogenous
Copy link
Contributor

@inogenous inogenous commented May 21, 2024

Summary

Bugfixes "Prevent segfault when butcher target disappears"

Purpose of change

Stops butchering when the butcher target corpse has been either raised or moved. Prevents segfault caused by dereferencing an invalid item_location.

Fixes #73985 . Fixes #73978 .

Describe the solution

Adds the check in butcher_do_turn suggested by #73978 (comment)

Describe alternatives you've considered

Testing

Tested the steps in #73985 and #73978 . Cannot reproduce the segfault on this branch.

Additional context

From #73610 .

Stops butchering when the butcher target corpse has been either raised
or moved. Prevents segfault caused by dereferencing an invalid
`item_location`.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels May 21, 2024
@dseguin dseguin merged commit 5661f1c into CleverRaven:master May 22, 2024
24 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reoccuring segfault when attempting to dissect an ant Butchery crash
2 participants